package mobile.game.main;

import mobile.game.common.startup.Run;
import mobile.game.core.support.log.LogCore;
import rpc.CommonSerializer;

public class Main {

	public static void main(String[] args) {
		String jsonFilePath = "AllRunInOneNode.json";
		String runNodeName = "rpcdemo";

		if (args.length == 2) {
			jsonFilePath = args[0];
			runNodeName = args[1];
		}

		System.setProperty("logFileName", "rpc");

		CommonSerializer.init();
		
		Run.start(jsonFilePath, runNodeName);

		LogCore.core.trace("启动rpc完成。");
	}

}
